package tech.wangpai.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;
import tech.wangpai.IUserService;

@RestController
public class UserController {

    @Reference(version="${service.version}",check = false)
    private IUserService userService;

    @ResponseBody
    @RequestMapping(value="/login/{username}",method=RequestMethod.GET)
    public String login(@PathVariable String username) {
        return userService.hello(username);
    }
}
